import request from '@/utils/request.js'
import { userApi } from '@/utils/apiUtils.js'

export const registerService = (data) =>
  request.post(userApi('/reg'), data)

export const loginService = (data) =>
  request.post(userApi('/login'), data)

export const findUsernameService = (data) =>
  request.post(userApi('/find-username'), data)

export const changePasswordService = (data) =>
  request.put(userApi('/change-pw'), data)

export const logoutService = () => request.get(userApi('/logout'))
